﻿<!DOCTYPE html >
<html>

	<head>
		<meta charset="UTF-8">
	
		<title>所有分类_{$web_name}</title>
		<meta name="Keywords" content="所有分类,{$web_name}" />
		<meta name="Description" content="所有分类,{$web_name}" />
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<meta name="viewport" content="width=device-width">
		<link rel="stylesheet" type="text/css" href="__TMPL__Public/css/public.css" />
		<link rel="stylesheet" type="text/css" href="__TMPL__Public/css/catalog.css" />
		<script type="text/javascript" src="__TMPL__Public/js/jquery.min.js"></script>
		<script type="text/javascript" src="__TMPL__Public/js/common.js"></script>
		<script type="text/javascript">
				// 弹出菜单
		$(function(){
			var menu = $('#menu');
			$('body').on('touchstart', '.show-menu', function(e) {
				if (e.stopPropagation) {
					e.stopPropagation();
				} else {
					e.cancelBubble = true;
				}
				var bd_top = $(document).scrollTop();
				if (menu.css('opacity') == '0') {
					menu.addClass('show');
				} else {
					menu.removeClass('show');
				}
			});
		});
		</script>
	</head>

	<body>

		<header class="header" style=" position:fixed; top:0">
			<div class="tab_nav">
				<div class="h-left">
					<a class="sb-back" href="javascript:history.back(-1)" title="返回"></a>
				</div>
				<div class="h-mid">全部分类</div>
				<div class="h-right">
					<aside class="top_bar">
						<div class="show-menu" id="show_more">
							<a href="javascript:;"></a>
						</div>
					</aside>
				</div>
			</div>
		</header>

		<mtc_include file="Public:right_nav" />
		<?php 
			     $left_silde=sp_get_menu_tree(2);
			     $i=0;
			     $m=0;
			?>
		<div class="container">
			<div class="category-box">
				<div class="category1" style="outline: none;" tabindex="5000">
					<ul class="clearfix" style=" padding-top:45px;">
						<foreach name="left_silde" item="v">
							<li <eq name="i" value="0">class="cur"</eq>> {$v['label']}
							</li>
							<php>$i++; </php>
						</foreach>
					</ul>
				</div>
				<div class="category2" style=" outline: none; overflow-y:scroll" tabindex="5001">
					<foreach name="left_silde" item="v">

						<dl style="display: none; padding-top:45px;<eq name='m' value='0'>display: block;</eq>">
							<a href="{$v['href']}" class="all" style=" color:#FFF">进入{$v['label']}频道&nbsp;></a>
							<foreach name="v.child" item="vo">
								<dt><a href="{$vo['href']}">{$vo['label']}</a></dt>
								<dd>
									<div class="fenimg">
										<foreach name="vo['child']" item="voo" key="keyo">
											<div class="fen" onclick="window.location.href='{$voo['href']}'">
												<img src="{$voo['UpFilePathInfo']}"/>
												<a href="{$voo['href']}">{$voo['label']}</a>
											</div>
										</foreach>
									</div>

								</dd>
							</foreach>
						</dl>
						<php>$m++;</php>
					</foreach>

				</div>
			</div>
		</div>
		<mtc_include file="Public:footer" />
		<script src="__TMPL__Public/js/category.js"></script>
		<script src="__TMPL__Public/js/jquery.nicescroll.min.js"></script>
		<script type="text/javascript">
			//显示菜单
			function show_menu() {
				var bd_top = $(document).scrollTop();
				if($('#menu').css('display') == 'none') {
					$('#menu').removeClass('hid');
					$('#menu').addClass('show');
					if(/iphone/i.test(navigator.userAgent) || (Sys.uc >= 9 && bd_top < 300)) {
						$('#hed_id').removeClass('hd_box_float');
						$('#play_box').removeClass('p48');
						$('.mnav').css({
							"position": "relative"
						});
					}

				} else {
					$('#menu').removeClass('show');
					$('#menu').addClass('hid');
					if(/iphone/i.test(navigator.userAgent) || (Sys.uc >= 9 && bd_top < 300)) {
						$('#hed_id').addClass('hd_box_float');
						$('#play_box').addClass('p48');
						$('.mnav').css({
							"position": "absolute"
						});
					}

				}
			}

			(function() {
				var $nav = $('.goods_nav');
				$(window).on("scroll", function() {
					$('#menu').removeClass('show');
					$('#menu').addClass('hid');
				});
			})();
		</script>
	</body>

</html>